<?php

/**
 * API：数据库测试模块
 */

namespace app\controller\api;

use app\BaseController;
use think\facade\Db;

class Json extends BaseController
{
    //json
    public function test()
    {
        $data = ['name' => 'thinkphp', 'status' => '1'];
        return json($data);
    }
}
